3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D RAVE drawing routines operate on a draw context, which maintains state information and other data associated with a drawing engine. You access a draw context using a draw context structure, defined by the TQADrawContext data type.
You should not directly access the fields of a draw context structure. Instead, you should use the draw context manipulation macros defined by QuickDraw 3D RAVE. See "Manipulating Draw Contexts" for more information.
struct TQADrawContext {
TQADrawPrivate *drawPrivate;
const TQAVersion version;
TQASetFloat setFloat;
TQASetInt setInt;
TQASetPtr setPtr;
TQAGetFloat getFloat;
TQAGetInt getInt;
TQAGetPtr getPtr;
TQADrawPoint drawPoint;
TQADrawLine drawLine;
TQADrawTriGouraud drawTriGouraud;
TQADrawTriTexture drawTriTexture;
TQADrawVGouraud drawVGouraud;
TQADrawVTexture drawVTexture;
TQADrawBitmap drawBitmap;
TQARenderStart renderStart;
TQARenderEnd renderEnd;
TQARenderAbort renderAbort;
TQAFlush flush;
TQASync sync;
TQASubmitVerticesGouraud submitVerticesGouraud;
TQASubmitVerticesTexture submitVerticesTexture;
TQADrawTriMeshGouraud drawTriMeshGouraud;
TQADrawTriMeshTexture drawTriMeshTexture;
TQASetNoticeMethod setNoticeMethod;
TQAGetNoticeMethod getNoticeMethod;
};
typedef struct TQADrawContext TQADrawContext;
Previous | QD3D Book | Overview | Chapter Contents | Next |